<template>
    <view> <button @tap="getList">获取笑话</button></view>
</template>

<script setup>
const getList = async () => {
    const res = await uni.request({
        url: "https://api-vue-base.itheima.net/api/joke",
        method: "GET",
    })
    console.log(res.data)
}
</script>

<style></style>
